Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install bolna from repo #388

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

h3110Fr13nd
Copy link
Contributor

@h3110Fr13nd h3110Fr13nd commented Sep 1, 2024

This PR closes #382.

  • Changes ensures the bolna builds and installs from the latest code in the local repo instead of the remote bolna repo.
  • It also ensures the proper caching and smaller (1.14 GB) image sizes for faster and optimised builds.

Since it follows from replacing torchaudio.
It also closes #380 and closes #370

refactor: Removed unnecessary dependencies

Removed Requirements
- python-dateutil
- tiktoken
- torchaudio
- scipy
- tokenizers
- huggingface-hub
- sentence-transformers
- optimum[onnxruntime]

Major Changes in This Commit
- torchaudio to pydub
	- bolna/helpers/utils.py
		- save_audio_file_to_s3
		- resample
		- pcm_to_wav_bytes
		- wav_bytes_to_pcm
	- bolna/synthesizer/basesynthesizer
		- resample
- sklearn to np
	- bolna/memory/cache/vector_cache
		- __get_top_cosine_similarity_doc
… of remote repo

- refactored code, dependencies
- updated context folder in docker files
- optmized dockerfiles

The final bolna docker image is 1.14 GB.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant